var ProjectileSpeed : float = 3;
var source = "None";

function Update () 
{
    var amntToMove : float = ProjectileSpeed * Time.deltaTime;
    transform.Translate(Vector3.forward * amntToMove);
}
    
function OnTriggerEnter(otherObject : Collider)
{
    if ((otherObject.tag == "Agent") && (source == "Player"))
    {
		var agentSet : AgentSet = GameObject.Find("Main Camera").GetComponent("AgentSet");
		agentSet.Remove(otherObject.gameObject);
		Destroy(otherObject.gameObject);
    }
	else if (((otherObject.tag == "Player") && (source == "Player")) ||
			  ((otherObject.tag == "Agent") && (source == "Agent")))
	{
		/* do nothing */	
	}
	else
	{
		Destroy(gameObject);
	}
}